//
//  LessonViewController.h
//  Digital Seamonsters
//
//  Created by Adam Cue on 2/22/11.
//  Copyright Adam Cue 2011.
//
//  This program is licensed and distributed under the terms of the GNU General Public License.  
//	The text for the license can be found in the license.txt file in this project.
//

#import <UIKit/UIKit.h>
#import <MediaPlayer/MediaPlayer.h>
#import "MarineFetcher.h"
#import "DSActivityView.h"
#import "Note.h"
#import "NoteTabButton.h"
#import "ColorPickerViewController.h"
#import "NotesTableViewController.h"
#import "PenWidthViewController.h"
#import "UIScrollView+Forward.h"
#import "FullScreenMegafaunaViewController.h"

@interface LessonViewController : UIViewController <UIWebViewDelegate, UIScrollViewDelegate, NotesTableViewControllerDelegate, MFMailComposeViewControllerDelegate, AnnotationViewDelegate, NoteTabButtonDelegate, FullScreenMegafaunaViewControllerDelegate>{
	IBOutlet UIButton * _highlighterButton;
	IBOutlet UIButton * _sketchingButton;
	IBOutlet UIButton * _eraserButton;
	BOOL highlighterActive;
	BOOL sketchingActive;
	BOOL eraseActive;
	BOOL showingImage;
	UIWebView * _lessonView;
   UIView * _helpView;
	NSString * _lessonURL;
	UIScrollView * _lessonScrollView;
	NSMutableArray * _annotationViews;
	UIPopoverController * _colorPopover;
	UIPopoverController * _notePopover;
	UIPopoverController * _navigationPopover;
	UIPopoverController * _listOfNotesPopover;
	UIPopoverController * _penWidthPopover;
	int numberOfPages;
	int previousPage;
	int lessonID;
	NSString * _lessonName;
	UIImage * _thumbnail;
	NSMutableArray * _annotationTouchPoints;
}

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil lessonURL:(NSString *)selectedLessonURL name:(NSString *)selectedName thumb:(UIImage *)selectedThumb;
- (IBAction)note;
- (IBAction)notesClicked:(id)sender;
- (IBAction)highlightClicked:(id)sender;
- (IBAction)sketchClicked:(id)sender;
- (IBAction)eraseClicked:(id)sender;
- (IBAction)colorClicked:(id)sender;
- (IBAction)widthClicked:(id)sender;
- (IBAction)clear;

@property(nonatomic, retain) UIWebView * lessonView;
@property(nonatomic, retain) UIView * helpView;
@property(nonatomic, retain) NSString * lessonURL;
@property(nonatomic, retain) UIScrollView * lessonScrollView;
@property(nonatomic, retain) NSMutableArray * annotationViews;
@property(nonatomic, retain) UIPopoverController * colorPopover;
@property(nonatomic, retain) UIPopoverController * notePopover;
@property(nonatomic, retain) UIPopoverController * navigationPopover;
@property(nonatomic, retain) UIPopoverController * listOfNotesPopover;
@property(nonatomic, retain) UIPopoverController * penWidthPopover;
@property(nonatomic, retain) NSString * lessonName;
@property(nonatomic, retain) UIImage * thumbnail;
@property(nonatomic, retain) NSMutableArray * annotationTouchPoints;
@property int lessonID;

@end
